package com.virtualmall.service;

import java.util.List;

import com.virtualmall.bean.ShoppingCart;
import com.virtualmall.common.Page;

public interface ShoppingCartService {
    void create(ShoppingCart product);
    
    List<ShoppingCart> getShoppingCartList(Long userId,Page page);
    
    Long getShoppingCartListCount(Long userId);
    
    ShoppingCart read(Long id);
    
    List<ShoppingCart> read(ShoppingCart shoppingCart);
    
    void delete(ShoppingCart shoppingCart);

    void delete(Long userId);
    
    void update(ShoppingCart shoppingCart);
    
    Double getShoppingCartTotalPrice(Long userId);
}
